<?php
/**
 * Created by PhpStorm.
 * User: coolinmind
 * Date: 07/11/2018
 * Time: 14:27
 */

namespace App\Services\Finance;


use App\Services\Finance\Record\RecordLogic;

class Record
{
    public function addCost($data)
    {
        return (new RecordLogic())->addCost($data);
    }

    public function costList($data)
    {
        return (new RecordLogic())->costList($data);
    }

    public function costStatistics($data)
    {
        return (new RecordLogic())->costStatistics($data);
    }

    public function addStatistics($data)
    {
        return (new RecordLogic())->addStatistics($data);
    }

    public function costByMonth($data)
    {
        ValidateRecord::checkValidate($data,['year', 'month']);
        return (new RecordLogic())->costByMonth($data);
    }

    public function financeAddSp($data)
    {
        return (new RecordLogic())->financeAddSp($data);
    }

    public function delSp($data)
    {
        return (new RecordLogic())->delSp($data);
    }

    public function addOne($data)
    {
        return (new RecordLogic())->addOne($data);
    }

    public function spList()
    {
        return (new RecordLogic())->spList();
    }

    public function spIncomeList()
    {
        return (new RecordLogic())->spIncomeList();
    }

    public function spInputPrepare($data)
    {
        return (new RecordLogic())->spInputPrepare($data);
    }

    public function spSubmit($data)
    {
        return (new RecordLogic())->spSubmit($data);
    }

    public function delInputById($data)
    {
        return (new RecordLogic())->delInputById($data);
    }

    public function incomeStatistics()
    {
        return (new RecordLogic())->incomeStatistics();
    }
}